export const to = async (promise) => {
  try {
    const res = await promise
    if (res) {
      return [res, null]
    }
  } catch (error) {
    return [null, error]
  }
}
